import request from '../../utils/request'

const api_common = '/admin/common/dict'


//根据dictcode获取下级节点
export function getDictByDictCode(dictCode) {
    return request({
        url: `${api_common}/getDict/${dictCode}`,
        method: 'get',
    })
}


//根据id获取下级节点
export function getDictChildData(id) {
    return request({
        url: `${api_common}/getChildData/${id}`,
        method: 'get',
    })
}